import request from '@/plugins/request';
// 登录
export function AccountLogin (data) {
    return request({
        url: '/v1/site/login',
        method: 'post',
        data
    });
}

export function AccountRegister (data) {
    return request({
        url: '/api/register',
        method: 'post',
        data
    });
}
export function AccountLogoOut (data) {
    return request({
        url: 'v1/site/logout',
        method: 'post',
        data
    });
}

// 菜单
export function GetMenus (data) {
    return request({
        url: '/v1/member/permissions',
        method: 'get',
        params: data
    });
}

// 钉钉扫码登录
export function dingLoginAccount (data) {
    return request({
        url: '/v1/dingtalk/fast-login',
        method: 'get',
        params: data
    });
}

// 用户绑定钉钉
export function dingSettingBind (data) {
    return request({
        url: '/v1/dingtalk/bind',
        method: 'get',
        params: data
    });
}

// 钉钉解绑

export function removeDingtalk (data) {
    return request({
        url: '/v1/dingtalk/unbind',
        method: 'get',
        params: data
    });
}
